/**
 * Copyright (c) 2011 eelpo.com
 * All rights reserved.
 */
package com.eelpo.cmmp.uac.wicket.setting;

import com.eelpo.cmmp.core.wicket.application.setting.CoreSettings;
import com.eelpo.cmmp.core.wicket.session.ISessionGenerate;

import org.apache.wicket.Page;

/**
 * <pre>
 * 
 * 具体设置Wicket
 * 
 * </pre>
 * 
 * @author <a href="mailto:Brian@eelpo.com">汪洪州</a>
 * @since 1.0
 */
public class UACSettings extends CoreSettings {

	private Class<? extends Page> homePage;
	private Class<? extends Page> loginPage;
	private ISessionGenerate sessionGenerate;

	public void setHomePage(Class<? extends Page> homePage) {
		this.homePage = homePage;
	}

	public void setLoginPage(Class<? extends Page> loginPage) {
		this.loginPage = loginPage;
	}

	public void setSessionGenerate(ISessionGenerate sessionGenerate) {
		this.sessionGenerate = sessionGenerate;
	}

	/**
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.eelpo.cmmp.core.wicket.application.setting.Settings#getLoginPage()
	 */
	@Override
	public Class<? extends Page> getLoginPage() {
		return loginPage;
	}

	/**
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.eelpo.cmmp.core.wicket.application.setting.Settings#getHomePage()
	 */
	@Override
	public Class<? extends Page> getHomePage() {
		return homePage;
	}

	/**
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.eelpo.cmmp.core.wicket.application.setting.Settings#getSessionGenerate
	 * ()
	 */
	@Override
	public ISessionGenerate getSessionGenerate() {
		return sessionGenerate;
	}
}
